package cn.edu.zufe.mjt.spinrg.sub;

import cn.edu.zufe.mjt.spinrg.Autowired;
import cn.edu.zufe.mjt.spinrg.Component;
import cn.edu.zufe.mjt.spinrg.PostConstruct;

/**
 * @author 蒙锦涛
 * @date 2025/4/25
 */
@Component
public class Cat {

    @Autowired
    private Dog dog;


    @PostConstruct
    public void init() {
        System.out.println("Cat 创建了，里面有一个 Dog" + dog);
    }
}
